package io.renren.modules.wx.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.wx.dao.LotteryRecordDao;
import io.renren.modules.wx.entity.LotteryRecordEntity;
import io.renren.modules.wx.service.LotteryRecordService;


@Service("lotteryRecordService")
public class LotteryRecordServiceImpl extends ServiceImpl<LotteryRecordDao, LotteryRecordEntity> implements LotteryRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LotteryRecordEntity> page = this.page(
                new Query<LotteryRecordEntity>().getPage(params),
                new QueryWrapper<LotteryRecordEntity>()
        );

        return new PageUtils(page);
    }

}
